<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>Document</title>
</head>

<body>
  <script>
    // 赋值运算符  =  +=  -= *= /=  %=

    var x = 8;
    x += 8; //x =x+8;
    console.log(x)  //16
    x %= 5; //1   x=x%5;
    console.log(x)
    // += 常用于字符串拼接
    var str = "<li>你好</li>"
    str += "<li>世界</li>"
    document.write(str)

  </script>
</body>

</html>